package com.bym.mall.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.bym.mall.entity.Shipping;
import com.bym.mall.form.ShippingForm;
import com.bym.mall.vo.ResponseVo;

import java.util.Map;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author bym
 * @since 2022-03-28
 */
public interface IShippingService extends IService<Shipping> {


    /**
     * 添加地址
     *
     * @param form 形式
     * @return {@link ResponseVo}<{@link Map}<{@link String}, {@link Object}>>
     */
    ResponseVo<Map<String, Object>> add(ShippingForm form);

    /**
     * 删除地址
     *
     * @param shippingId 航运id
     * @return {@link ResponseVo}
     */
    ResponseVo delete(Integer shippingId);

    /**
     * 更新地址
     *
     * @param shippingId 航运id
     * @param form       形式
     * @return {@link ResponseVo}
     */
    ResponseVo update(Integer shippingId, ShippingForm form);

    /**
     * 展示地址列表
     *
     * @param pageNum  页面num
     * @param pageSize 页面大小
     * @return {@link ResponseVo}
     */
    ResponseVo list(Integer pageNum, Integer pageSize);
}
